package com.jiyun.om.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 运单表
 * </p>
 *
 * @author zhx
 * @since 2025-02-12
 */
@Data
public class WaybillExcel{

    @ExcelProperty("运单号")
    private String waybillId;

    @ExcelProperty("始发地")
    private String origin;

    @ExcelProperty("目的地")
    private String destination;

    @ExcelProperty("运单状态")
    private String status;

    
    @ExcelProperty("运输方式")
    private String transportMode;

    
    @ExcelProperty("承运商")
    private String carrier;
    
    @ExcelProperty("司机")
    private String driverName;
    
    @ExcelProperty("司机手机号")
    private String driverPhone;

    
    @ExcelProperty("车牌号")
    private String licensePlate;
    
    @ExcelProperty("车型")
    private String vehicleModel;
    
    @ExcelProperty("车长")
    private String vehicleLength;

    @ExcelProperty("计费方式")
    private String billingMethod;

    @ExcelProperty("运费合计")
    private BigDecimal totalFreight;

    @ExcelProperty("计划发车时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date plannedDepartureTime;

    @ExcelProperty("实际发车时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date actualDepartureTime;

    @ExcelProperty("计划到达时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date plannedArrivalTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ExcelProperty("实际到达时间")
    private Date actualArrivalTime;

    @ExcelProperty("接单时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date orderTime;

    @ExcelProperty("下单时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date placementTime;

    @ExcelProperty("创建人")
    private String creator;

    @ExcelProperty("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date creationTime;

}
